//
//  NSString+URL.h
//  测试
//
//  Created by 李李善 on 2017/4/14.
//  Copyright © 2017年 森之源. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (URL)
/** <字符串编码> */
-(NSString *)removedByUTF8String;
/** <将字符串转URL> */
-(NSURL *)onURLByStrig;
/** <获取完整URLString> */
-(NSString *)onAbsoluteURLString;
/** < sha加密 > */
- (NSString*) sha;
/** < md5加密 > */
- (NSString *) md5;
@end


@interface NSString (UrlEncode)

- (NSString *)urlEncode;
- (NSString *)urlEncodeUsingEncoding:(NSStringEncoding)encoding;

- (NSString *)urlDecode;
- (NSString *)urlDecodeUsingEncoding:(NSStringEncoding)encoding;

- (NSDictionary *)dictionaryFromURLParameters;

@end
